package model;

import java.util.Date;

public class Student 
{
    private String lastName;
    private String firstName;
    private String email;
    private int matricleNumber;
    private Date dayOfBirth;
   
	@Override
	public boolean equals(Object obj) 
	{
		if(!(obj instanceof Student)) return false;
		return ((Student)obj).getMatricleNumber() == this.getMatricleNumber();	
	}
	
	@Override
	public String toString() {
		return "Student [lastName=" + lastName + ", firstName=" + firstName
				+ ", email=" + email + ", matricleNumber=" + matricleNumber
				+ ", dayOfBirth=" + dayOfBirth + "]";
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public int getMatricleNumber() {
		return matricleNumber;
	}
	public void setMatricleNumber(int matricleNumber) {
		this.matricleNumber = matricleNumber;
	}
	public Date getDayOfBirth() {
		return dayOfBirth;
	}
	public void setDayOfBirth(Date dayOfBirth) {
		this.dayOfBirth = dayOfBirth;
	}
}
